package com.wjbgn.bsolver.server.service;

import com.wjbgn.bsolver.server.dto.BugRecordDTO;
import com.wjbgn.bsolver.server.entity.BugRecordDO;
import org.springframework.data.domain.Page;
import org.springframework.data.elasticsearch.annotations.Highlight;
import org.springframework.data.elasticsearch.annotations.HighlightField;

import java.util.List;

/**
 * Description:
 * Create Date: 2022-04-16T16:09:33.187
 *
 * @author wjbgn
 * @version 1.0
 */
public interface IBugRecordService {

    List<BugRecordDO> getAll();

    BugRecordDO getById(String id);

    BugRecordDO save(BugRecordDO testEsDO);

    void delete(String id);

    Page<BugRecordDO> findByPageable(BugRecordDTO bugRecordDTO);

    com.baomidou.mybatisplus.extension.plugins.pagination.Page<BugRecordDTO> findUserCenterByPageable(BugRecordDTO bugRecordDTO);

    int updateBugViews(String bugId, String murmur);

    int updateBugAnswers(String bugId);
}